package com.ticket.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ticket.common.annotation.Excel;
import com.ticket.common.core.domain.BaseEntity;

/**
 * 储存卡信息（包含绑定信息）对象 yanchu_storage_crad
 * 
 * @author ruoyi
 * @date 2023-12-12
 */
@ApiModel(description = "储存卡信息（包含绑定信息）")
public class YanchuStorageCrad extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(name = "id",value = "主键")
    private Long id;

    /** 绑定者id */
    @Excel(name = "绑定者id")
    @ApiModelProperty(name = "bindId",value = "绑定者id")
    private Long bindId;

    /** 绑定时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "绑定时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(name = "bindTime",value = "绑定时间")
    private Date bindTime;

    /** 余额 */
    @Excel(name = "余额")
    @ApiModelProperty(name = "balance",value = "余额")
    private BigDecimal balance;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBindId(Long bindId) 
    {
        this.bindId = bindId;
    }

    public Long getBindId() 
    {
        return bindId;
    }
    public void setBindTime(Date bindTime) 
    {
        this.bindTime = bindTime;
    }

    public Date getBindTime() 
    {
        return bindTime;
    }
    public void setBalance(BigDecimal balance) 
    {
        this.balance = balance;
    }

    public BigDecimal getBalance() 
    {
        return balance;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bindId", getBindId())
            .append("bindTime", getBindTime())
            .append("balance", getBalance())
            .toString();
    }
}
